package com.konke.smartpad_huahao;

import com.konke.sdslibrary.ISdsDomain;
import com.konke.sdslibrary.factroy.SdsDomain;
import com.konke.sdslibrary.push.MyPushManager;
import com.konke.smartpad_huahao.domain.AppCache;
import com.sds.sdk.android.sh.SHLog;
import com.sds.sdk.android.sh.common.SHDebug;
import com.videogo.openapi.EZOpenSDK;
import com.zsj.comminlibrary.base.BaseApplication;

import io.alterac.blurkit.BlurKit;

public class MyApplication extends BaseApplication {

    private static MyApplication sApplication;
    public static ISdsDomain sISdsDomain;

    @Override
    public void onCreate() {
        super.onCreate();
        sApplication = this;
        sISdsDomain = SdsDomain.getInstance();
        sISdsDomain.init(this);
        AppCache.initialize(this);
        MyPushManager.getInstance(this);
        SHLog.enable(true);
        SHLog.setEnableRecvMsg(true);
        SHDebug.setUseSsl(false);
        BlurKit.init(this);
        //萤石
        try {
            EZOpenSDK.showSDKLog(true);
            EZOpenSDK.enableP2P(true);
            EZOpenSDK.initLib(sApplication, "b12f7c60f629400cacc425a11b5a81fb");
        } catch (Throwable throwable) {
            throwable.printStackTrace();
        }
    }

    public static MyApplication getIntance() {
        return sApplication;
    }
}
